#pragma once
#include "SceneBase.h"

class CSceneLogin : public CSceneBase
{
public:
	CSceneLogin(void);
	virtual ~CSceneLogin(void);
	CREATE_FUNC(CSceneLogin);

	bool init() override;
	virtual void onEnter() override;
	virtual void onExit() override;
	virtual void update(float delta) override;
private:
	void onRegister(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);
	void onLogin(cocos2d::Ref* pSender, cocos2d::ui::TouchEventType type);

	void onReportError(const std::string& err);
private:
	cocos2d::Node*				m_LoginNode;
};

